package com.itfreer.gis.data.server;

import org.apache.http.client.config.RequestConfig;

/**
 * GIS通用配置接口
 * @author Administrator
 *
 */
public interface GisConstants {
	/*
	 * 设置请求参数: setConnectionRequestTimeout: 设置从连接池中取连接的超时时间 setConnectTimeout:
	 * 设置连接超时时间 setSocketTimeout: 设置请求超时时间
	 */
	public static int TIMELIMIT = 1000 * 30;
	public static final RequestConfig REQUEST_CONFIG = RequestConfig.custom().setConnectionRequestTimeout(TIMELIMIT)
			.setConnectTimeout(TIMELIMIT).setSocketTimeout(TIMELIMIT).build();
	
	public static final String DEFAULT_CHARSET = "UTF-8"; // 请求的编码格式
	public static final String FORMAT = "json";//数据返回格式
}
